package com.hnit.applet.common.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author zwj
 * @date 2022/6/27
 * @description TODO 读取数据库配置信息
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.datasource")
@RefreshScope
public class DataSourcePropertiesConfig {

    private String username;
    private String password;
    private String url;
    private String driverClassName;
}